<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<script type="text/javascript" src="<%=path %>/js/resources/common.js"></script>
<script type="text/javascript" src="<%=path %>/resources/page/bootstrap-paginator.js"></script>

<script type="text/javascript">
<!--
 
//-->

initPages(1,100);


function initFontProds(path,page){
	$("#loading").show();
	$("#fontprodspager").show();
	$.post(path+"productsAction_list.action",{
		"page":page
	},function(result){
		result=eval('('+result+')');
		$(".data_ul").empty();
		if(result.rescode=='100'){
			$("#loading").hide();
			var d=result.data;
			for(var i=0;i<d.length;i++){ 
				var e=d[i]; 
				var eid=e.uuid+"";
				<%-- var $e=$('<li nid='+e.uuid+'><img alt="" src="<%=path %>/images/font/prod.png" class="img-circle small_img"><span nid='+e.uuid+' class="li_txt"> '+
						'<a nid='+e.uuid+' href="javascript:showDetails('+e.uuid+')">'+e.name+'<small>（'+e.prodTime+'）</small></a>'+
						'</span><div style="border:1px dashed #ddf;margin:0 auto;"></div></li>'); --%>
				var $e=$("<li><img alt='' src='<%=path%>/images/font/prod.png' class='img-circle small_img'> <span class='li_txt'>"+
						"<a href='javascript:showDetails(\""+e.uuid+"\")'>"+e.name+"<small>（"+e.prodTime+"）</small></a></span><div style='border:1pxs dashed #ddf;margin:0 auto;'></div></li>");
				$(".data_ul").append($e);
			}
			initPagesWithEle($("#fontprodspager"),result.pagebean.curPage,result.pagebean.totalPages);
		}
	})
}
function initFontNews(path,page){
	$("#loading").show();
	$("#fontnewspager").show();
	$.post(path+"newsAction_list.action",{
		"page":page
	},function(result){
		result=eval('('+result+')');
		$(".data_ul").empty();
		if(result.rescode=='100'){
			$("#loading").hide();
			var d=result.data;
			for(var i=0;i<d.length;i++){ 
				var e=d[i]; 
				var eid=e.uuid+"";
				<%-- var $e=$('<li nid='+e.uuid+'><img alt="" src="<%=path %>/images/font/prod.png" class="img-circle small_img"><span nid='+e.uuid+' class="li_txt"> '+
						'<a nid='+e.uuid+' href="javascript:showDetails('+e.uuid+')">'+e.name+'<small>（'+e.prodTime+'）</small></a>'+
						'</span><div style="border:1px dashed #ddf;margin:0 auto;"></div></li>'); --%>
				var $e=$("<li><img alt='' src='<%=path%>/images/font/news.png' class='img-circle small_img'> <span class='li_txt'>"+
						"<a href='javascript:showFontNewsDetails(\""+e.uuid+"\")'>"+e.title+"<small>（"+moment(e.newsTime).format('20YY年MMMDo HH:mm')+"）</small></a></span><div style='border:1pxs dashed #ddf;margin:0 auto;'></div></li>");
				$(".data_ul").append($e);
			}
			initPagesWithEle($("#fontnewspager"),result.pagebean.curPage,result.pagebean.totalPages);
		}
	})
}
 
</script>
